<template>
    <div class="btn-menu-par">
        <!-- <div class="btn-menu-assist"></div> -->
        <div class="btn-menu">
            <a @click="toLast" id="last" class="btn">上一步</a>
            <a @click="saveCard" id="next" class="btn">生成名片</a>
        </div>
    </div>
</template>

<script>
// 自定义方法
import { backHistory } from '_projectFn/page'

export default {
    name: 'WriteBusContentBtnMenu',
    methods: {
        toLast() {
            backHistory()
        },
        saveCard() {
            this.$emit('saveCard')
        }
    },
}
</script>

<style lang="scss" scoped>
.btn-menu-assist {
    width: 100%;
    height: 55px;
}

.btn-menu {
    // position: fixed;
    width: 100%;
    height: 55px;
    line-height: 48px;
    background: white;
    left: auto;
    bottom: 0;
    border-top: 1px solid #ececec;
    text-align: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-shadow: 0px 1px 12px -5px #999999;
    box-shadow: 0px 1px 12px -5px #999999;
    padding: 3px;

    .btn {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
    }

    #last {
        width: 30%;
        color: #999999;
    }

    #next {
        color: white;
        background: #0077bf;
        width: 70%;
        font-size: 16px;
    }
}
</style>